home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5178 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.1 KB

  1. Path: inforamp.net!ts44-07
  2. From: rmorin@inforamp.net (Randy Charles Morin)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Borland App Expert "Text Editor" Question
  5. Date: Fri, 02 Feb 96 18:56:02 GMT
  6. Organization: MiddleWorld SoftWare
  7. Message-ID: <4etme4$7s1@sam.inforamp.net>
  8. References: <4eenp5$7l2@knot.queensu.ca>
  9. NNTP-Posting-Host: ts44-07.tor.inforamp.net
  10. X-Newsreader: News Xpress Version 1.0 Beta #4
  11.  
  12. In article <4eenp5$7l2@knot.queensu.ca>,
  13.    3jca4@qlink.queensu.ca (John Adams) wrote:
  14. >As a start, I used BCW 4.5's App Expert to build a standard MDI "text
  15. >editor".  Now I need to access the text contained in one of the text
  16. >windows, and copy it into another buffer for processing.
  17. >
  18. >Is there a pointer to the text  buffer I can use, or a member
  19. >function?
  20. >
  21. >Thanks
  22. >Geoff
  23. >
  24.  
  25. Assuming you are using the TEditView class or something similar.
  26. This class has following methods inherited from TEdit that are interesting in 
  27. your case GetLine, GetNumLines, GetSubText, etc.
  28. Also inherited from TStatic is the function GetText.
  29. I've always used them to perform such operations.
  30.  
  31. Agrivar
  32.